package com.naiterui.ehp.bp.bo.doctor;

import java.io.Serializable;

/**
 * 医生注册参数信息BO
 * 
 * @author Amber
 * @since 1.0.0
 */
public class LoginParamBO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1339052908677033719L;
	
	//注册上级类型枚举值
	/**
	 * 商务代表邀请注册
	 */
	public static final int RELATION_TYPE_DY = 0;
	/**
	 * 医生邀请注册
	 */
	public static final int RELATION_TYPE_DR = 1;
	/**
	 * 自主注册
	 */
	public static final int RELATION_TYPE_PERSONAL = 2;

	// 注册来源枚举值
	/**
	 * APP端注册
	 */
	public static final int REGIST_SOURCE_APP = 0;
	/**
	 * 微信注册【产品已停用，但数据存在】
	 */
	public static final int REGIST_SOURCE_WX = 1;

	/**
	 * H5注册页
	 */
	public static final int REGIST_SOURCE_H5 = 3;
	
	//手机号
	private String phone;
	//姓名
	private String name;
    //面膜
	private String pwd;
	//上级类型  0：代表邀请；1：医生邀请；2:自主注册（无上级）
	private Integer relationType;
	//上级id
	private Long relationId;
	//注册来源   0：APP；1：微信【微信产品已暂停】；2：dayone小程序；3：H5注册页
	private Integer registSouce;
	//是否扫码注册
	private boolean scan;
	//请求平台_p   【暂留，可以不需要】
	private String platform;

	public LoginParamBO() {
		
	}
	/**
	 * 构造函数
	 * @param phone
	 * @param name
	 * @param pwd
	 * @param relationType
	 * @param relationId
	 * @param registSource
	 * @param scan
	 */
	public LoginParamBO(String phone,String name,String pwd,int relationType,Long relationId,int registSource,boolean scan) {
		this.phone = phone;
		this.name = name;
		this.pwd = pwd;
		this.relationType = relationType;
		this.relationId = relationId;
		this.registSouce = registSource;
		this.scan = scan;
	}
	
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getRelationType() {
		return this.relationType;
	}

	public void setRelationType(Integer relationType) {
		this.relationType = relationType;
	}

	public Long getRelationId() {
		return this.relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	public boolean isScan() {
		return this.scan;
	}

	public void setScan(boolean scan) {
		this.scan = scan;
	}

	public String getPlatform() {
		return this.platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public Integer getRegistSouce() {
		return this.registSouce;
	}
	
	public void setRegistSouce(Integer registSouce) {
		this.registSouce = registSouce;
	}
	
	@Override
	public String toString() {
		return "LoginParamBO [phone=" + this.phone + ", name=" + this.name + ", pwd=" + this.pwd + ", relationType=" + this.relationType
				+ ", relationId=" + this.relationId + ", registSouce=" + this.registSouce + ", scan=" + this.scan + ", platform="
				+ this.platform + "]";
	}
	
}
